<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>雀巢</title>
    <link rel="stylesheet" href="css/swiper.css">
    <link rel="stylesheet" href="css/animate.min.css">
    <link rel="stylesheet" type="text/css" href="css/nestle.css">

    <style type="text/css">

    </style>
</head>
<body>


    <div class="swiper-container">
        <div class="swiper-wrapper">
            <div class="swiper-slide slide1">
                <div class="login"><img src="images/logo_gray.png"></div>
                <div class="mid"><img src="images/indexSnacky.jpg"></div>
                <div class="txt"><img src="images/indexTxt.png"></div>
                <div class="bottom"><img src="images/indexHouse.jpg"></div>
            </div>

        </div>


        <div class="swiper-wrapper">
            <div class="swiper-slide slide2">slider2</div>

        </div>

        <div class="swiper-wrapper">
            <div class="swiper-slide">slider3</div>

        </div>



</div>



<script src="js/swiper.min.js"></script>
<script src="js/swiper.animate.min.js"></script>

<script type="text/javascript">
    var mySwiper = new Swiper ('.swiper-container', {
        direction : 'vertical',
        onInit: function(swiper){ //Swiper2.x的初始化是onFirstInit
            swiperAnimateCache(swiper); //隐藏动画元素
            swiperAnimate(swiper); //初始化完成开始动画
        },
        onSlideChangeEnd: function(swiper){
            swiperAnimate(swiper); //每个slide切换结束时也运行当前slide动画
        }
    })


</script>
</body>
</html>
